var http = require('http');
http.createServer(function (request, response) {
    response.writeHead(200, { 'Content-Type': 'text/html;charset=utf-8' });
    if (request.url == '/' || request.url == '/index.html') {
        // 访问index.html
        response.end(首页的字符串)
    } else if (request.url == '/content.html') {
        //访问content.html
        response.end(content页面的字符串)
    } else {
        response.end('抱歉, 你找的地址不存在!')
    }
}).listen(8082);

console.log('Server running at http://127.0.0.1:8082');

//node-http-server

